/**
 * Created by huangzx on 2015/12/7.
 */
define( ['angular',
        'framework/msg/GillionMsgModule'],
    function (angular) {
        var app = angular.module('EditRowModule', ['GillionMsgModule']);
        app.controller('EditRowController', ['$scope', 'GillionMsg', 'GillionMsgService', function ($scope, GillionMsg, GillionMsgService) {
            $scope.row = GillionMsgService.getInputData();
            $scope.confirm = function(){
                GillionMsgService.setOutputData({
                    success: true,
                    row: $scope.row
                });
                GillionMsgService.close();
            };

            $scope.cancel = function(){
                GillionMsgService.close();
            };
        }]);
        return app;
    }
);